package com.study.spring.cloud.config;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

/**
 * @ClassName: ConfigClientApplication
 * @Description:
 * @author: limingxing
 * @Date: 2020-07-10 15:01
 */
@EnableConfigServer
@EnableDiscoveryClient
@SpringBootApplication
public class ConfigServerApplication {

    public static void main(String[] args) {
//        SpringApplication.run(ConfigServerApplication.class,args);
        new SpringApplicationBuilder(ConfigServerApplication.class).web(true).run(args);
    }

}
